package com.zhongwang.mms.module.basic.dao;

import com.zhongwang.mms.gen.entity.TDept;
import com.zhongwang.mms.gen.entity.TDeptExample;
import com.zhongwang.mms.module.basic.model.TDeptModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface TDeptDao {
    long countByExample(TDeptExample example);

    int deleteByExample(TDeptExample example);

    int deleteByPrimaryKey(Integer depId);

    int insert(TDept record);

    int insertSelective(TDept record);

    List<TDept> selectByExample(TDeptExample example);

    TDept selectByPrimaryKey(Integer depId);

    int updateByExampleSelective(@Param("record") TDept record, @Param("example") TDeptExample example);

    int updateByExample(@Param("record") TDept record, @Param("example") TDeptExample example);

    int updateByPrimaryKeySelective(TDept record);

    int updateByPrimaryKey(TDept record);

    TDeptModel findByUserId(@Param("id") Integer id);

    List<TDeptModel> selectByTDeptModel(TDeptModel tDeptModel);
}